<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>提现列表</h2>
    </div>
    <div class="cf">
        <form action="{:U('Manage/withdraw_search')}" id="filter" method="post">
            <div style="width:30%;height:20px;float:left;">
                <span>提现时间：</span>
                <td><input type="text" id="start_time" name="start_time" value="{$start_time}" style="border-radius:5px;height: 26px;line-height:26px;border:1px solid #ccc;width:140px;"/></td>
                <td style=" padding-right:6px;">-</td>
                <td><input type="text" id="end_time" name="end_time" value="{$end_time}" style="border-radius:5px;height: 26px;line-height:26px;border:1px solid #ccc;width:140px;"/></td>
            </div>
            <div style="width:30%;height:25px;float:left;">
                <button tyle="submit" class="btn" style="border-radius:5px;">查 询</button>
            </div>
        </form>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th class="">ID</th>
                <th class="">用户</th>
                <th class="">金额</th>
                <th class="">贡献数</th>
                <th class="">微信号</th>
                <th class="">提现状态</th>
                <th class="">申请时间</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td>{$vo.id} </td>
                        <td>{$vo.username}</td>
                        <td>{$vo.price}</td>
                        <td>{$vo.profit}</td>
                        <td>{$vo.wechat}</td>
                        <td>
                            <if condition="$vo.status eq 0">审核中</if>
                            <if condition="$vo.status eq 1">提现成功</if>
                            <if condition="$vo.status eq 2">提现失败</if>
                        </td>
                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>

                        <td>
                            <if condition="$vo.status eq 0">
                                <a href="{:U('check_withdraw',array('id'=>$vo['id'],'uid'=>$vo['uid'],'status'=>1))}"  onclick="return confirm('是否执行')" >通过</a>
                                <a href="{:U('check_withdraw',array('id'=>$vo['id'],'uid'=>$vo['uid'],'profit'=>$vo['profit'],'status'=>2))}"  onclick="return confirm('是否执行')" >不通过</a>
                            </if>


                            <if condition="$vo.status eq 1">通过</if>
                            <if condition="$vo.status eq 2">未通过</if>


                            <!--<a href="{:U('skill_del',array('id'=>$vo['id']))}" onclick="return confirm('是否确认删除')" >删除</a>-->
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
    <script type="text/javascript">
        $(function(){
            $("div.holder").jPages({
                containerID: "itemContainer",
                perPage: 100
            });
            jeDate({
                dateCell:"#start_time",
                isinitVal:false,
                isTime:true, //isClear:false,
                minDate:"2014-09-19 00:00:00"
            }) ;
            jeDate({
                dateCell:"#end_time",
                isinitVal:false,
                isTime:true, //isClear:false,
                minDate:"2014-09-19 00:00:00"
            }) ;

        })

        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });


        //导航高亮
        highlight_subnav("{:U('Manage/withdraw')}");
        //获取市

    </script>
</block>
